// 加载频道数据
import request from '@/utils/request'
// 获取用户频道数据
export const userChannel = () => {
    return request({
        url: '/v1_0/user/channels'
    })
}
// 获取所有频道列表
export const channelAll = () => {
    return request({
        url: '/v1_0/channels'
    })
}
// 封装设置用户频道接口
export const setChannel = (channels) => {
    return request({
        url: '/v1_0/user/channels',
        method: 'put',
        data: {
            channels
        }
    })
}